package edu.hadassah.prettyprint.doc.xml;

import edu.hadassah.prettyprint.doc.ContentElement;
import edu.hadassah.prettyprint.doc.IVisitor;

public class Attribute extends ContentElementImpl  {
	
	private final String name;
	private final String value;
	
	public Attribute(ContentElement parent, String name, String value) {
		super(parent);
		this.name = name;
		this.value = value;
	}

	public String getName() {
		return name;
	}

	public String getValue() {
		return value;
	}
	
	public void accept(IVisitor visitor) {
		visitor.visit(this);
    }
}
